Auto merge of #4051 - alexcrichton:fix-flaky-test, r=alexcrichton
authorbors <bors@rust-lang.org>
Tue, 16 May 2017 01:16:03 +0000 (01:16 +0000)
committerbors <bors@rust-lang.org>
Tue, 16 May 2017 01:16:03 +0000 (01:16 +0000)
Fix a flaky concurrent test with correct locking

The recent refactoring to clone the bare registry left in an accidental path
where index checkouts could clobber one another. This commit updates the logic
with proper locking and attempt ordering, attempting a full retry of the open
operation after the index locked.


Trivial merge